package cn.wolfcode.service;


import cn.wolfcode.common.domain.UserInfo;
import cn.wolfcode.domain.Condition;
import cn.wolfcode.domain.PostFormDto;
import cn.wolfcode.domain.UserLogin;
import cn.wolfcode.domain.UserResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by wolfcode
 */
public interface IUserService {
    /**
     * 登录功能
     * @param phone 用户的账号/用户的手机号码
     * @param password 用户的密码
     * @param ip 客户端IP
     * @return
     */
    UserResponse login(Long phone, String password, String ip, String token);


    List<UserLogin> selectUserLoginList(Integer num);

    PageInfo<UserInfo> conditionFindByPage(Integer page, Integer pageSize, Condition condition);

    void addUser(PostFormDto postFormDto);

    void updateUser(UserInfo userInfo);

    void batchDeleteUser(List<Long> ids);
}
